feat: Add multiple providers and proxy improvements#96
Conversation
Co-Authored-By: HowieHz <94725606+HowieHz@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
在线测试 -> https://howiehz.top/uc |
|
pr规范要求必须附带release-note,可以参考下面的 |
There was a problem hiding this comment.
Pull request overview
Adds new OAuth2/OIDC providers (Google, LINUX DO) and refactors OAuth2/OIDC network calls to consistently use the configured proxy, with corresponding documentation and UI asset updates.
Changes:
- Add Google and LINUX DO provider definitions (AuthProvider + Oauth2ClientRegistration) and icons.
- Route user-info requests and OIDC JWKS fetching through the proxy-configured
WebClient. - Update README to reflect OIDC support, new providers, and expanded proxy scope.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/resources/static/linuxdo.svg |
Adds LINUX DO icon for provider UI. |
src/main/resources/static/google.svg |
Adds Google icon for provider UI. |
src/main/resources/extensions/client-registrations.yaml |
Adds Google and LINUX DO client registration defaults. |
src/main/resources/extensions/auth-provider.yaml |
Adds Google and LINUX DO auth provider entries; fixes indentation for SSO config map. |
src/main/java/run/halo/oauth/HaloOAuth2AuthenticationWebFilter.java |
Uses proxy-enabled WebClient for token exchange + userinfo; introduces custom OIDC JWT decoder factory for JWKS retrieval. |
README.md |
Documents OIDC support, new providers, and expanded proxy coverage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
….java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
….java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
jwkSetUri时,直接从该 URI 获取 JWKSissuerUri时,自动访问.well-known/openid-configuration获取 JWKS 位置已经过测试:

